using Castle.Windsor;
using SharpArch.Core.CommonValidator;
using SharpArch.Core.NHibernateValidator.CommonValidatorAdapter;
using CommonServiceLocator.WindsorAdapter;
using Microsoft.Practices.ServiceLocation;

namespace Tests
{
	public class ServiceLocatorInitializer
	{
		public static void Init() {
			IWindsorContainer container = new WindsorContainer();
			container.AddComponent("validator", typeof(IValidator), typeof(Validator));
			ServiceLocator.SetLocatorProvider(() => new WindsorServiceLocator(container));
		}
	}
}
